package cn.boysoft.module.security.manager;

import java.util.Collection;
import java.util.List;

import cn.boysoft.core.manager.CRUD;
import cn.boysoft.core.model.TreeNode;
import cn.boysoft.module.security.model.entity.ResourceEntity;
/**
 * @author 付厚俊
 * CreateTime 2013-4-5 上午10:29:52
 */
public interface ResourceManager <T,P> extends CRUD<T,P> {

	List<ResourceEntity> queryResourceByUserId(String userId);
	List<ResourceEntity> queryResourceOfRole(String roleId);
	List<ResourceEntity> queryAllResource();
	public Collection<TreeNode> queryAllResourceTree();
}
